<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>通达网络办公系统</title>
<link href="<?php echo base_url()?>css/base.css" type="text/css" rel="stylesheet" />
<link href="<?php echo base_url()?>css/common.css" type="text/css" rel="stylesheet" />
<link href="<?php echo base_url()?>css/pages.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="<?php echo base_url()?>js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>js/Clock.js"></script>
<script type="text/javascript" src="<?php echo base_url() ?>/js/menu.js"></script>
<!--[if IE 6]><script type="text/javascript" src="js/pngfix.js"></script><![endif]-->
</head>

<script type="text/javascript">
function del(id) {
	$.ajax({
		type: "POST",
		url: "<?php echo site_url('article/dellog')?>/",
		data: "id="+id,
		success: function(msg){
			$("#tr"+id).fadeOut('slow');
		}
	}); 
};

</script>
<body>
<!-- OAindex{ -->
<div class="oaindex">
	<?php include_once("system_header.php");?>
    <div class="clearfix">
        <?php include_once("system_left.php");?>
        <!-- right_box{ -->
        <div class="right_box"><form id="abs" name="form1" action="" method="get">
            <div class="the_current">
				<span></span>
				<p>当前位置：首页&nbsp&nbsp>>&nbsp&nbsp内容<em style="float:right;padding-right:20px"><a href="/index.php/article/intofield/<?php echo $num;?>">添加新字段</a></em></p>
            </div>
			<!-- 表格内容{ -->
			<div class="sheet clearfix">
				<table width="740" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <th width="132">表单提示文字</th>
                    <th width="165">数据字段名</th>
                    <th width="191">数据类型</th>
                    <th width="244">操作</th>
                  </tr>
				  <?php if(!empty($log)){ foreach($log as $item):?>

				 <tr id="tr<?php echo $item->id;?>">
					<td><?php echo $item->formtext;?></td>
					<td><?php echo $item->fieldname;?></td>
					<td><?php echo $item->datatext;?></td>
					<td><?php if($item->classid==0){?><font color="#8f8f8f">删除</font><?php }else{?><a href="javascript:del(<?php echo $item->id;?>)">删除</a><?php }?></td>
				 </tr>
				<?php ?>
				<?php endforeach;}else{ ?> <tr align='center' bgcolor='#ffffff'><td colspan='4'>没有记录</td></tr><?php }?>    
                </table>
				
                <p class="whol_button" style="padding-left:260px"><a href="/index.php/article/createtable/<?php echo $num?>">保存</a>     &nbsp;&nbsp;   <a href="javascript:history.go(-1);">返回</a></p>

			</div>			
            </form>
        </div>
        <!-- }right_box -->
    </div>
   <?php include_once("system_footer.php");?>
</div>
<!-- }OAindex -->

</body>
</html>
